#include "new_class.h"

/*
* class kimu bir neicun kongjian ajiratkili bolidu new arkilik
*
* ajiratkan pointer neng qong kili class iqidiki bikitilgan ozgarguqi miktarneng 
* sanineng yihindisi 
*/

void main(){
	
	human *p = new human;	
	
	cout<<&p<<endl;
	
	//delete p; // delete kilip jiefang kiliwatmisa ozlikidin yuyulmaydu xuneng uqun new kilgan ni qokom delete kilimiz
	//cout<<p<<endl;

	//zhizhen chengyuan bianliang ni mundak fangwen kilimiz

	// birinji hil usul 
	//(*p).human();
	//ikkinji hil usul
	//p->~human();

	cout<<p->get()<<endl;

	//this neng ixiltilix usulu

	human b;
	b.put(9999);
	cout<<"class object b`s address :"<<&b<<endl;
	cout<<b.get_x()<<endl;
}
